package com.rybbaby.tss.tasks.core.task.TQwebService;

public class WebserviceFactory {
	
	private WebserviceFactory() {
	} 

	private static WebserviceInvoker modeAll = null;
	
	private static WebserviceInvoker modeNew = null;
	
	public static WebserviceInvoker getInstanceAll(){
		if(null == modeAll){
			String wsdlUrl = "http://webservice.tq.cn/Servers/services/ServerAll?wsdl";
			try {
				modeAll = new WebserviceInvoker(wsdlUrl);
			} catch (Exception e) {
				e.printStackTrace();
			}
		}
		return modeAll;
	}
	
	public static WebserviceInvoker getInstanceNew(){
		if(null == modeNew){
			String wsdlUrl = "http://webservice.tq.cn/Servers/services/ServerNew?wsdl";
			try {
				modeNew = new WebserviceInvoker(wsdlUrl);
			} catch (Exception e) {
				e.printStackTrace();
			}
		}
		return modeNew;
	}
	
}